package net.media.datafw.database.model;

import java.lang.reflect.Method;

import net.media.datafw.database.DataBaseConnection;
import net.media.datafw.database.DataBaseException;
import net.media.datafw.model.Pojo;

public interface DataAccessor {
	public abstract Pojo create(DataBaseConnection cxn, Pojo data) throws DataBaseException;
	public abstract Pojo update(DataBaseConnection cxn, Pojo data) throws DataBaseException;
	public abstract Pojo delete(DataBaseConnection cxn, Pojo data) throws DataBaseException;
	public Method getServiceMethod(String operation) throws DataBaseException;
}
